<template>
  <!-- <div class="container">

  </div>-->
  <div class="product">
    <div class="box container">
      <div class="title">
        <div class="confirm">确认订单</div>
        <div class="way">
          <div>配送方式</div>
          <div class="border-style" />
        </div>
      </div>
    </div>
    <div class="site container">
      <div class="site-title">
        <div class="title-text">
          <span class="site-icon" />
          <span>收货人信息</span>
        </div>
        <div class="title-btn">+ 新增收货地址</div>
      </div>
      <div class="site-list">
        <ul>
          <li class="list">
            <div class="circle" />
            <div class="name">张三</div>
            <div class="phone">13800138000</div>
            <div class="minute">广东 广州 天河区棠下街道市场北</div>
            <div class="default-address">默认地址</div>
          </li>
        </ul>
        <div class="unfold">展开收货地址</div>
      </div>
    </div>
    <div class="detail container">
      <div class="detail-title">
        <div class="detail-product">商品信息</div>
        <div>
          <span>单价(元)</span>
          <span class="quantity">数量</span>
          <span>小计(元)</span>
        </div>
      </div>
    </div>
    <div class="commodity container">
      <div class="commodity-title">
        <span />
        <span>仪器仪表专卖</span>
      </div>
      <div class="commodity-box">
        <ul>
          <li class="commodity-list">
            <div class="commodity-detail">
              <div class="commodity-img" />
              <div class="specification">
                <div class="specification-title">钢管</div>
                <ul>
                  <li class="headline">
                    <span>
                      标 号：
                      <span>外16内6.03</span>
                    </span>
                  </li>
                  <li class="headline">
                    <span>
                      标 号：
                      <span>外16内6.03</span>
                    </span>
                  </li>
                  <li class="headline">
                    <span>
                      标 号：
                      <span>外16内6.03</span>
                    </span>
                  </li>
                </ul>
              </div>
            </div>
            <div class="commodity-price">
              <div>50.00</div>
              <div class="counter">
                <el-input-number
                  v-model="num1"
                  size="mini"
                  :min="1"
                  :max="10"
                  @change="handleChange"
                />
              </div>
              <div>52.00</div>
            </div>
          </li>
          <li class="commodity-list">
            <div class="commodity-detail">
              <div class="commodity-img" />
              <div class="specification">
                <div class="specification-title">钢管</div>
                <ul>
                  <li class="headline">
                    <span>
                      标 号：
                      <span>外16内6.03</span>
                    </span>
                  </li>
                  <li class="headline">
                    <span>
                      标 号：
                      <span>外16内6.03</span>
                    </span>
                  </li>
                  <li class="headline">
                    <span>
                      标 号：
                      <span>外16内6.03</span>
                    </span>
                  </li>
                </ul>
              </div>
            </div>
            <div class="commodity-price">
              <div>50.00</div>
              <div class="counter">
                <el-input-number
                  v-model="num1"
                  size="mini"
                  :min="1"
                  :max="10"
                  @change="handleChange"
                />
              </div>
              <div>52.00</div>
            </div>
          </li>
        </ul>
      </div>
    </div>
    <div class="invoice container">
      <div class="invoice-title">发票信息</div>
      <div class="invoice-detail">
        <div class="invoice-rise">
          <div class="invoice-circle" />
          <div>
            是否开具发票
            <span>(开企业发票抬头发票须填写纳税人识别号，以免影响报销)</span>
          </div>
        </div>
      </div>
      <div class="invoice-input">
        <div class="input-one">
          <div class="distance">
            发票抬头类型：
            <span>
              <el-radio v-model="radio" label="1">个人</el-radio>
              <el-radio v-model="radio" label="2">企业</el-radio>
            </span>
          </div>
          <div class="distance">
            发票抬头：
            <span>
              <el-input v-model="input" placeholder="" />
            </span>
          </div>
          <div class="distance">
            银行账号：
            <span>
              <el-input v-model="input" placeholder="" />
            </span>
          </div>
          <div class="distance">
            专用发票加收费用:
            <span class="style-color">￥229.0</span>
          </div>
        </div>
        <div class="input-two">
          <div class="distance">
            发票类型：
            <span class="interval">
              <el-select v-model="value" placeholder="请选择">
                <el-option
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
            </span>
          </div>
          <div class="distance">
            纳税人识别号：
            <span>
              <el-input v-model="input" placeholder="" />
            </span>
          </div>
          <div class="distance">
            企业地址：
            <span class="between">
              <el-input v-model="input" placeholder="" />
            </span>
          </div>
        </div>
        <div class="input-three">
          <div class="distance">
            发票内容：
            <span>
              <el-select v-model="value" placeholder="请选择">
                <el-option
                  v-for="item in options"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
            </span>
          </div>
          <div class="distance">
            开户银行：
            <span>
              <el-input v-model="input" placeholder="" />
            </span>
          </div>
          <div class="distance">
            企业电话：
            <span>
              <el-input v-model="input" placeholder="" />
            </span>
          </div>
        </div>
      </div>
    </div>
    <div class="leave container">
      <div class="leave-title">给买家留言</div>
      <div class="leave-input">
        <div class="textarea">
          <el-input v-model="textarea2" :rows="3" type="textarea" maxlength="200" placeholder="输入你对商品的要求，限200字" />
        </div>
        <div class="leave-hint">提示：请勿填写有关账号、资金等敏感信息</div>
      </div>
    </div>
    <div class="close container">
      <div class="close-title">结算信息</div>
      <div class="close-detail">
        <div>
          <span>2件商品，总商品金额：￥114.0</span>
          <span class="mileage">运输里程：200.00km</span>
          <span>
            运费总价：
            <span class="close-money" @click="toFreight">￥20.00></span>
          </span>
        </div>
        <div class="close-total">店铺合计：￥116.00</div>
      </div>
      <div class="close-btn">
        <div class="close-site">
          <div>寄送至：广东 广州市 天河区 长兴路北街八巷22号收货人</div>
          <div>收件人：张子青 159****2334</div>
        </div>
        <div class="close-button">
          <div class="close-money">
            实付款：
            <span>￥</span>
            <span>166.00</span>
          </div>
          <div class="button">
            <el-button type="info" plain>返回上一页</el-button>
            <el-button type="danger">提交订单</el-button>
          </div>
        </div>
      </div>
    </div>
    <div class="empty container" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      num1: 1,
      radio: '1',
      textarea2: '',
      options: [
        {
          value: '选项1',
          label: '黄金糕'
        },
        {
          value: '选项2',
          label: '双皮奶'
        },
        {
          value: '选项3',
          label: '蚵仔煎'
        },
        {
          value: '选项4',
          label: '龙须面'
        },
        {
          value: '选项5',
          label: '北京烤鸭'
        }
      ],
      value: '',
      input: ''
    }
  },
  methods: {
    handleChange(value) {
      console.log(value)
    },
    toFreight() {
      this.$router.push({
        path: '/prepaid'
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.product {
  background: #f5f5f5;
  .box {
    background: #f5f5f5;
    .title {
      margin-top: 30px;
      height: 157px;
      background: #ffffff;
      .confirm {
        height: 58px;
        line-height: 58px;
        color: #3d3d3d;
        padding: 0 17px;
        font-weight: bold;
        font-size: 16px;
        border-bottom: 3px solid #e5e5e5;
      }
      .way {
        padding: 18px 0 0 18px;
        .border-style {
          width: 123px;
          height: 23px;
          border: red 1px solid;
          margin-top: 12px;
        }
      }
    }
  }
  .site {
    margin-top: 20px;
    margin-bottom: 20px;
    .site-title {
      color: #ffffff;
      height: 42px;
      background: #ff3b30;
      padding: 0 18px;
      display: flex;
      justify-content: space-between;
      .title-text {
        .site-icon {
          margin-right: 10px;
        }
        margin-top: 12px;
      }
      .title-btn {
        width: 120px;
        height: 26px;
        background: #ffffff;
        text-align: center;
        line-height: 26px;
        color: #6b6b6b;
        margin-top: 8px;
      }
    }
    .site-list {
      background: #fff4f3;
      .list {
        display: flex;
        padding: 13px 0 0 20px;
        height: 44px;
        .circle {
          width: 10px;
          height: 10px;
          border: 3px solid #e03523;
          border-radius: 50%;
          margin-top: 5px;
        }
        .name {
          margin: 0 28px 0 10px;
        }
        .minute {
          margin: 0 24px 0 16px;
        }
        .default-address {
          width: 69px;
          height: 22px;
          background: #ff3b30;
          font-size: 12px;
          color: #ffffff;
          line-height: 22px;
          text-align: center;
          border-radius: 36px;
        }
      }
      .unfold {
        background: #ffffff;
        height: 44px;
        padding: 14px 0 0 20px;
        color: #6b6b6b;
        font-size: 12px;
      }
    }
  }
  .detail {
    background: #ffffff;
    margin-bottom: 10px;
    .detail-title {
      background: #ffffff;
      height: 44px;
      line-height: 44px;
      justify-content: space-between;
      padding: 0 20px;
      color: #3d3d3d;
      font-size: 14px;
      font-weight: 400;
      display: flex;
      .quantity {
        margin: 0 144px;
      }
    }
  }
  .commodity {
    background: #ffffff;
    .commodity-title {
      height: 47px;
      border-bottom: 1px solid #e5e5e5;
      padding: 12px 0 0 20px;
      color: #3d3d3d;
      font-size: 14px;
    }
    .commodity-price {
      display: flex;
      align-items: center;
      .counter {
        margin: 0 98px;
      }
    }
    .commodity-box {
      padding-bottom: 18px;
      .commodity-list {
        display: flex;
        justify-content: space-between;
        padding: 17px 32px 0px 20px;
        .commodity-detail {
          display: flex;
          .commodity-img {
            width: 82px;
            height: 83px;
            background: goldenrod;
            margin-right: 30px;
          }
          .specification {
            .specification-title {
              color: #3d3d3d;
              font-size: 14px;
            }
            .headline {
              span {
                color: #a7a7aa;
                font-size: 12px;
              }
            }
          }
        }
      }
    }
  }
  .invoice {
    height: 260px;
    background: #ffffff;
    margin-top: 20px;
    .invoice-title {
      height: 44px;
      padding: 12px 0 0 20px;
      border-bottom: 1px solid #e5e5e5;
    }
    .invoice-detail {
      .invoice-rise {
        display: flex;
        font-size: 14px;
        margin-top: 20px;
        span {
          color: #fc8a41;
        }
        .invoice-circle {
          width: 10px;
          height: 10px;
          border: 3px solid #e03523;
          border-radius: 50%;
          margin: 5px 10px 0 20px;
        }
      }
    }
    .invoice-input {
      margin-top: 24px;
      padding: 0 95px 0 42px;
      display: flex;
      justify-content: space-between;

      .distance {
        margin-bottom: 16px;
        .between {
          margin-left: 29px;
        }
        .interval {
          margin-left: 23px;
        }
        .style-color {
          color: #ff3b30;
          font-size: 14px;
        }
      }
    }
    /deep/ .invoice-input {
      .el-input {
        width: 182px;
        height: 30px;
        .el-input__inner {
          height: 30px;
        }
        .el-select__caret {
          margin-top: 4px;
        }
      }
    }
  }
  .leave {
    min-height: 160px;
    background: #ffffff;
    margin-top: 20px;
    .leave-title {
      height: 44px;
      padding: 12px 0 0 20px;
      border-bottom: 1px solid #e5e5e5;
    }
    .leave-input {
      display: flex;
      padding: 20px 0 0 20px;
      .textarea {
        width: 827px;
        height: 80px;
      }
      .leave-hint {
        color: #6b6b6b;
        font-size: 12px;
        margin-left: 20px;
        margin-top: 6px;
      }
    }
  }
  .close {
    height: 248px;
    background: #ffffff;
    margin-top: 20px;
    .close-title {
      height: 44px;
      padding: 12px 0 0 20px;
      border-bottom: 1px solid #e5e5e5;
    }
    .close-detail {
      color: #6b6b6b;
      font-size: 14px;
      margin-top: 17px;
      padding-right: 20px;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      border-bottom: 3px solid #e5e5e5;
      .mileage {
        margin: 0 25px;
      }
      .close-money {
        color: #0198cd;
        cursor: pointer;
      }
      .close-total {
        float: right;
        margin: 15px 0 18px 0;
      }
    }
    .close-btn {
      height: 117px;
      background: #f3fbfe;
      display: flex;
      justify-content: space-between;
      padding: 0 20px;
      .close-site {
        margin-top: 30px;
        color: #6b6b6b;
        line-height: 26px;
      }
      .close-button {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: space-evenly;
        /deep/.button {
          .el-button--danger {
            background-color: #ff3b30;
          }
        }
      }
    }
  }
  .empty{
      height: 60px;
  }
}
</style>
